home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
701-725
/
718
/
bootpic
/
bootpic.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
15KB
|
332 lines
*******************************************************************************
* *
* BootPicV2.1 *
* *
* © 1991,92 by Andreas Ackermann *
* *
*******************************************************************************
CONTENTS:______________________________________________________________________
1. About shareware
2. Introduction
3. Installation of a picture
4. About the Parser
5. Kompatibility
6. What happens after resetting the machine ?
7. Possible sources of errors
8. History
9. About the programming
_______________________________________________________________________________
SHAREWARE-CONDITIONS:
BootPic is SHAREWARE. You are allowed to copy BootPic as long as the
following conditions are kept :
o BootPic mustn't be changed
o This DOC-file must be included
o It mustn't be charged any fee (besides fees for copying or disks etc.)
If you like BootPic and if you use it regularly or if you include parts of
the source in your own programms (e.g. the fading-routines) please send me
a small donation of 5$ or 5DM.
For another $5 you'll get the latest Version and the source ( scarcely
documented).
If you want to use BootPic as part of a commercial programme, you need my
written permission.
My Address: Andreas Ackermann
Lorenz-Summa-Str.10
W-8679 Oberkotzau
GERMANY
Tel.:09286/6399
Starting with V2.0c it's prohibited to spread BootPic on any disk which
costs more than $5 ( or a corresponding amount of another currency ).
If you find BootPic on such an expensive disk please tell me !!!
INTRODUCTION
Do you belong to the group of people who think the «Workbench-hand» that
appears after every reset to be boring ?
Then BootPic is the right thing for you. It allows you to load (nearly) any
IFF-ILBM-picture instead of the «hand». (Overscan, HAM, Halfbright, etc.) It
just has to be in compressed form. (e.g. DPaint saves its pictures in com-
pressed form ).
The installed programme uses 1K more memory than the length of the picture-
file. [ starting with V1.2 I use CHIP-Mem to avoid complications ! ]
Starting with V2.0 it's also possible to load a MED-Module that is played while
the picture is shown. MED is a Music-programm comparable to SoundTracker. The
V3.00 of this programm is to be found on Fish 476. Please note: When you save
your Music make sure that you selected 'MED-Module' as output format. That's
the only one that can be handled by BootPic. (MED also loads SoundTracker-
Modules and then you may save them in the MED-Module format !!!)
( A Demo-Module is provided in this drawer. )
As these modules usually are quite large, you may also load modules crunched
with the PowerPackerV2.3b ( Fish 253 ). Note: Crunched Modules may need up to
10s to decrunch at each reset !
INSTALLATION
BootPic can be started either from Workbench or CLI.
If started from WB an intuition-style window with five gadgets will open :
Load Pic&Music : If you click on this gadget a window with a stringgadget will
open and asks you to enter a filename. If you press RETURN,
BootPic will try to load this Picture, clicking on Cancel
will stop any action. If you've got the ARP-Library installed,
you'll get the ARP-Filerequester.
If you selected BootPic together with another icon (see at
example) you'll find its name already written in the string-
gadget when opening the filerequester.
After that you're asked whether you want to install a MED-
Module or not.
If you wanted to, the Requester (or the Stringgadget) will
prompt you for another filename.
After inputting a path, BootPic will try to load the picture.
If an error occurs, nothing will be installed; if there's an
error while loading the MED-Module only the picture will be
installed.
It's impossible to install a MED-Module without installing a
picture.
When loading a crunched module BootPic is unable to check
whether it is a module or not !
Remove Picture :
Does nothing but that.
Check only df0:
If this gadget is active when loading a picture, only the
internal drive will be checked for bootable disks ( as usual)
If it's deactivated you may boot from ANY drive you like.
(including Kick 1.2/1.3 ! )
The drive containing a bootable Disk is then called df0: and
the internal drive may be accessed by the name of the other
drive ( e.g. df2: )
IMPORTANT:
The state of this gadget is significant BEFORE loading an pic-
ture. Toggling it after loading doesn't have any effect on the
picture.
Color-Cycling: If it's active, it enables Color-Cycling if the corresponding
information is saved with the picture ( CRNG-chunk )
Info : Displays an info-message.
The error-messages are exactly the same as described below.
The color used to fade to after displaying the picture is taken from the
background color of the workbench screen at the moment it is being installed.
EXAMPLE:
To install the picture that is included on this Disk, do the
following steps:
Open the BootPic-drawer. Click on the demo.pic icon. Then double-
click on the BootPic icon while holding the SHIFT-key.
Click on the Load Picture -gadget and press RETURN.
Select 'Yes' in the requester that pops up afterwards.
Enter 'DemoSong.mod' and press RETURN
After resetting and removing any disks in df0: you can watch the
picture and enjoy the sound.
When started from CLI, BootPic is controlled by commandline parameters as
usual. If no parameters are specified, a window as described above will open.
The syntax is as follows :
BootPic -e | -l{IFF-File} [-m{MED-Module}][-s][-r][-c rgb][-k][-y]
[-d time]
-l{IFF-File} Removes, if present, an old picture and then tries to install
a new one instead.
Message if it had success:
«Picture successfully installed. Have Fun !»
Possible faults:
«Couldn't open Picture-File»
«This is not an ILBM-Picturefile»
«Picture is not compressed»
«Warning:Couldn't find CAMG-Chunk»
CAMG-Chunk not found : The viewmodes are saved in this chunk
[e.g. Hires or Interlace etc.]. Until Kickstart 1.3 the picture
will be shown correctly despite of CAMG's missing.
[RESTRICTION: instead of Halfbright, HAM will be selected.]
«BODY-Chunk not found»
ILBM-File didn't contain image-data (should never happen).
«Memlist corrupt. Something went totally wrong»
Meaning see at -e
«Not enough Memory»
«Couldn't open Module / Not a MED-Module»
Error while loading the MED-Module:[either one of these]
- lack of memory
- file wasn't a module
- file not found
Nevertheless, the picture itself will be installed.
-e Removes, if present, an old picture.
Message if successful:
«Removed BootPic from List»
Possible faults:
«BootPic not installed. Couldn't remove it»
«Memlist corrupt. Something went totally wrong»
BootPic discovered its memory, but it couldn't find its entry in
the resident table (should never happen).
The following parameters work only together with -l :
-m{MED-Module}
loads additionally a MED-Module. If it can't be loaded, just the
picture will be installed.
-s loads the file specified by -l only if BootPic is not yet
installed. In this way it is possible to use BootPic in the
Startup-Sequence.
If BootPic was already installed it prints out :
«BootPic already installed. Changed nothing.»
-r BootPic resets the machine after loading the picture.
-c here you can specify the color which should be faded in after
showing the picture. Normally this is the background color of
your Workbench-Screen. The values of r,g and b must be specified
hexadecimal, so values from 0-9 and a-f are valid. [0 means that
this component isn't there at all and f means that it is there at
maximum idensity. (e.g. -c000 for black, -ce50 for orange).
Invalid values are accepted but the result will be other than
expected.
Default: 05a [Amiga-blue]
-k enables checking of all drives [see above]
[ usage is invers: Specifying -k has got the same effect as
deactivating 'Check only df0:' ]
-y enables color-cycling [see above]
-d time displays the picture only a certain time and then continues
bootup. ( Useful with Harddisks )
NOTE: time must be of one figure ( 0-9 )
ABOUT the PARSER
All parameters may be specified either as small or capital letters. Every
parameter MUST start with «-», the order is at pleasure. Between the single
parmeters any number of spaces may be typed .
Valid calls would be :
bootpic -l :BootPic/demo.pic -R -c 7aB
bootpic -E
bootpic -cAE3 -S -l:bootpic/demo.pic -d 7
If -e or -l aren't specified, or if something else was typed wrong, BootPic
shows the usage.
If -e AND -l are specified, BootPic acts as if just -e was specified.
KOMPATIBILTY
BootPic installs itself in a «kindly» way, that means that any other resident
programme won't be removed, e.g. Guardian, CARD:, but also viruses.
In the same careful way it removes itself.
It should run on every Amiga with Kick 1.2 or 1.3. It also runs on the A500+
with OS 2.0, but I'm not sure about the A3000.
Now BootPic also runs on Amigas with 1MB chipram and Kick 1.3. As long as
BootPic is installed, other resident programms will be executed as well.
NOTE: It's possible that this patch won't work with 'Setpatch -r'.
Please avoid using setpach wenn working on an older Kick 1.3/1MB
chipmem Amiga.
When BootPic is patching the error, the screen will turn red during reset
to indicate its presence.
What happens after RESETTING the machine ?
When BootPic was successfully installed, the loaded picture will be faded in
softly whenever there's no bootable disk in df0: [or any other drive] .
If you additionally loaded a MED-Module, it will be played while the picture
is shown. Packed modules may need up to 10s to decrunch ! You may abort
decrunching by pressing the left mousebutton. In this case the picture will
disappear and the normal Workbenchhand appears.
If the uncrunched file actually isn't a Module you won't hear anything !
You may toggle the sound-filter with the right mousebutton ( the filter is
connected with the PowerLED so you actually toggle both ).
When inserting a bootable disk the colors will be faded softly to the color
specified under -c and your system starts as usual .
[The fading of HAM-pictures looks a little bit curious but that's NO bug.]
If you press the left mouse button while the picture is shown, the usual
workbench-hand appears.
Possbile SOURCES of ERRORS
Normally a picture that was once installed, stays in memory until you remove
it with -e [Remove Picture] or till you switch off your Amiga.
But there are some exceptions:
a.) If you play a game that believes all the memory belongs to itsself, it
is possible that the memory allocated by BootPic is overwritten.
Then you won't see the picture any more.
b.) Many viruses simply overwrite the reset-vectors. In this case BootPic
will be gone, too.
c.) Some virusdedectors (e.g. ATool) are of the opinion that every resident
programme is a virus, so BootPic will be removed, too.
If one of these cases should arise, it may be possible, that you get a GURU
after a reset. If you can't remove it by clicking the left mousebutton,
switching off the Amiga is the only thing you can do.
HISTORY
V1.0 - first release, only Cli-Support
V1.1 - intuition-interface
V1.2 - added 'Color-Cycling' and 'Check all Drives'
- Resident Code and Data MUST be placed in Chip-Mem [only exception:
internal expansions of 512k at location $C00000 (e.g. I've this one)].
Now it uses Chip-Mem. Sorry, I didn't know about this limitation.
- There was some code that caused BootPic to guru on the A500 Plus with
OS 2.0 after displaying the picture. Now it works ...
- Fixed one bug that caused serious errors when loading IFF-files with
more than 32 colors saved ( like the HAM-Demo-pics of DPaintIV ).
- Brushes now are handled correctly.
V2.0 - MED-Module support
V2.0b- Delay-support
V2.0c- patch for Kick 1.3
V2.0d- now should run with MultiKickstartBoards
V2.1 - included bootselector for Kick1.2/1.3
PROGRAMMING
BootPic was written with the Devpac 2.14D - Assembler.
Many thanks go to JM Forgeas for the wonderful editor AZ V1.50.
Thanks Markus Herpich who provided me his brandnew A500+ for a whole
afternoon.
The code for playing the sound was written by Teijo Kinnunen.
I took it from the MEDV3.0 package distributed on Fish 476.
[Files: loadmod.i and modplayer.i]
The decrunching code is ©opyrighted by Nico François. I took it from Fish 253.
Also greetings to the 17 ( really seventeen, not more [since june 1991] !)
kind people who sent me the demanded fee or bug reports. Hope there'll be
more in future ...
Future Versions:
Less bugs (I don't know any more, but there surely are ... )
But remember: future improvements depend on YOUR support !!!
I am very thankful for critics, propositions and BUG-reports.
[ If you write, please use special stamps if possible, my Grandpa is a
stamp-collector. Thanks. ]
ENJOY !
Oberkotzau, july 31st 1992 Andreas Ackermann [*10.07.1974]
[ excuse my mistakes !!! ]